File Library Objects

Function / Event

Return Value

Description

Syntax

File

Copy Directory

Boolean

Copies the specified directory to a new specified location. If the directory already exists in the new location, it is overwritten, if specified to do so. Returns true upon success.

Copy <Source Directory> To <Target Directory> And <Override>

Copy File

---

Copies a file from a source location to a specified destination, and renames it.

Copy <File Name> From <Path> To <New Path> And Rename It As <New File Name>

Create Directory --- Creates a directory. Create <Directory>

Delete Directory

Boolean

Deletes the specified directory. Deletes all child directories recursively, if specified to do so. Returns true upon success.

Delete <Directory> <Recursively>

Delete File

---

Deletes a file in a specified file.

Delete <File Name and Path>

Does Directory Exist

Boolean

Returns true if the specified directory exists.

Does <Directory> Exist

Does File Exist

Boolean

Checks if a file exists in a specified path.

Does File Exist <File Name>

Get File Information

--

Gets the file information.

The function requires you to create an instance of the File Information business entity and fill in the FileName property. The Get File Information function uses this FileName to retrieve the other file information (Accessed Time, Creation Time, Hidden, Modification Time, Read Only, Size, and Version) and populates the File Information instance. This function was moved from Win32 Operations library objects.

Get File Information Of <File Info>

Get File Information from a Folder

List of File Information

Returns the information of the files present in a folder according to the file extension specified. If the <Extension> is empty, this function returns information of all the files present in the folder. This function was added in 7.2.

Get File Information with Extension <Extension> from Folder <FolderPath>

Get File Information from Folder and its Subfolders

List of File Information

Returns the information of the files present in the base folder and its sub folder according to the file extension specified. If the <Extension> is empty, this function returns information of all the files present in the base folder and its subfolders. This function was added in 7.2.

Get File Information with Extension <Extension> from Base Folder <FolderPath>

Move File

---

Moves a file from one directory to another directory.

Move <File Name> From <Path> To <New Path> and <Overwrite>

Read Text From File

Text

Reads the textual content of the specified file.

Read Text From <Path> <File>

Rename Directory Boolean Renames the specified directory to a specified name. If the new name already exists, the directory is overwritten, if specified to do so. Returns true upon success. Rename <Directory> To <New Directory> And <Override>

Rename File

---

Renames a file in a specified path.

Rename <File Name> at <Path> as <New File Name>

Write Text To File

Boolean

Writes the specified text to the specified file. If the file does not exist, it is created; otherwise, it is updated or overridden as specified.

Write <Text> To <Path><File> and <Update> if exists